package com.itheina.service.impl;

import com.itheina.dao.AccountDao;
import com.itheina.service.AccountService;

import java.sql.SQLException;

public class AccountServiceImpl implements AccountService {
    //创建dao层的对象 使用注入的方式进行创建
    private AccountDao accountDao;
    @Override
    public void update() throws SQLException {
        System.out.println("Service的update方法执行了");
        accountDao.update();
    }

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }
}
